﻿using System;

namespace HzyEF.Test
{
    using System.Linq.Expressions;
    using System.Text;
    using System.Linq;
    using HzyEF.Base;
    using HzyEF.Core.CodeAnalysis;

    public class User
    {
        public string Name { get; set; }
        public string Age { get; set; }
        public DateTime Date { get; set; }

    }

    class Program
    {
        static void Main(string[] args)
        {
            SqlStorage _SqlStorage = new SqlStorage();
            var _Code = new StringBuilder();
            _Code.Append("666");
            _SqlStorage.SetCode(_Code);

            var _code = _SqlStorage.Code;

            Expression<Func<HzyTuple<User>, bool>> expressions =
            w => new string[] { "hzy", "111", "222" }.Contains(w.t1.Name);

            // Expression<Func<HzyTuple<User>, bool>> expressions = w => w.t1.Name == "hzy";


            WhereAnalysis _WhereAnalysis = new WhereAnalysis();
            _WhereAnalysis.Visit(expressions);

            Console.WriteLine("Hello World!");
        }
    }
}